﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserAddMoneyLog.aspx.cs"
    Inherits="qy_54tss_Admin_User_UserAddMoneyLog" %>

<%@ Register Src="~/Admin/Banner.ascx" TagName="TogoBanner" TagPrefix="uc1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="~/Admin/Foot.ascx" TagName="Foot" TagPrefix="uc2" %>
<%@ Register TagPrefix="epc" Namespace="Hangjing.Control" Assembly="Hangjing.Control" %>
<%@ Register TagPrefix="uc3" Src="~/Admin/Adleft.ascx" TagName="left" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>分站费用明细-<%= WebUtility.GetMyName()%></title>
    <link href="../css/reset.css" rel="stylesheet" type="text/css" />
    <link href="../css/menu.css" rel="stylesheet" type="text/css" />
    <link href="../css/boxes.css" rel="stylesheet" type="text/css" />
    <link href="../css/divDialog.css" rel="stylesheet" type="text/css" />
    <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="../css/iestyles.css" media="all" />
    <![endif]-->
    <!--[if lt IE 7]>
    <link rel="stylesheet" type="text/css" href="../css/below_ie7.css" media="all" />
    <![endif]-->
    <!--[if IE 7]>
    <link rel="stylesheet" type="text/css" href="../css/ie7.css" media="all" />
    <![endif]-->
    <link href="../../javascript/jbox/Skins/jbox.css" rel="stylesheet" />


    <link href="../javascript/autocomplete/jquery.autocomplete.css" rel="stylesheet" />



    <script type="text/javascript" src="../javascript/DatePicker/WdatePicker.js"></script>

    <script src="../javascript/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../javascript/Common.js?v=0107" type="text/javascript"></script>

    <script src="../javascript/ShowDivDialog.js" type="text/javascript"></script>
    <script src="../javascript/autocomplete/jquery.autocomplete.js?v=0108"></script>


    <script language="javascript" type="text/javascript">
        $(window).load(function () { $("#loading-mask").hide(); });


        var Table;
        function init() {
            Table = new CheckTable("grid_table");
            $(".grid_data tr").mouseover(function () { $(this).addClass("on-mouse"); }).mouseout(function () { $(this).removeClass("on-mouse"); });
            $(".grid_data tr:even").addClass("even pointer");
            $("#loading-mask").hide();
        }

        function Del() {
            var nums = Table.GetChecks();
            if (nums == undefined || nums.length == 0) {
                alert("请选择要操作的数据!");
                return false;
            }
            document.getElementById("hidDels").value = ArrayToString(nums);
            return DelConfirm();
        }

        function loading() {
            $("#loading-mask").show();
        }

        function loadover() {
            $("#loading-mask").hide();
        }

        function GotoAddFood() {
            window.location.href = "UserAddMoneyDetail.aspx?uid=" + document.getElementById("hidTogoId").value + "";
        }

        $(document).ready(function () {

            init();
        });

        $(document).ready(function () {
            var searchdeliverurl = "/ajaxHandler.ashx?cityid=" + $("#DDLArea").val() + "&t=" + Math.random(1) + "&method=searchdeliverGroup";
            $("#delivergroupText").autocomplete(searchdeliverurl);
        });

    </script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:HiddenField ID="hidDels" runat="server" />
        <asp:HiddenField runat="server" ID="hidTogoId" />
        <!--加载中显示的div-->
        <div id="loading-mask">
            <p class="loader" id="loading_mask_loader">
                <img src="../images/ajax-loader-tr.gif" alt="加载中..." /><br />
                请等待...
            </p>
        </div>
        <epc:Hint ID="Hint1" runat="server" HintImageUrl="images/Control" />
        <div class="wrapper">
            <!--banner start-->
            <uc1:TogoBanner runat="server" ID="Banner" />
            <!--banner end-->
            <!--center start-->
            <div class="middle" id="anchor-content">
                <div id="page:main-container">
                    <div class="columns ">
                        <uc3:left ID="Left1" runat="server" />
                        <div class="main-col" id="content">

                            <div class="main-col-inner">
                                <div id="divMessages">
                                </div>
                                <fieldset class="AdminSearchform">
                                    <legend>查询条件 </legend>
                                    <table border="0" cellpadding="0" cellspacing="0" style="margin-left: 10px; height: 25px;">
                                        <tr>
                                            <td>
                                                <span class="span12">项目名称：</span>
                                                <asp:TextBox ID="tbKeyword" runat="server" CssClass="j_text w120" />&nbsp; &nbsp;
                                            </td>
                                            <td>发生时间：
                                                  
                                                        <asp:TextBox runat="server" CssClass="j_text" ID="tbStartTime" Width="120px" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd'})"></asp:TextBox>
                                                至
                                                    <asp:TextBox runat="server" ID="tbEndTime" CssClass="j_text" Width="120px" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd'})"></asp:TextBox>


                                                <asp:DropDownList ID="ddlState" runat="server" class="j_select" AppendDataBoundItems="true">
                                                    <asp:ListItem Value="-1">所有账户</asp:ListItem>
                                                </asp:DropDownList>

                                                <asp:DropDownList ID="ddlcount" runat="server" class="j_select" AppendDataBoundItems="true">
                                                    <asp:ListItem Value="-1">所有科目</asp:ListItem>

                                                </asp:DropDownList>

                                                <asp:DropDownList ID="DDLArea" runat="server" Width="100" AppendDataBoundItems="true"
                                                    class="j_select">
                                                    <asp:ListItem Value="0">所有城市</asp:ListItem>
                                                </asp:DropDownList>

                                                <asp:DropDownList ID="ddlDeliverGroup" runat="server" AppendDataBoundItems="true">
                                                    <asp:ListItem Value="0">所有商圈</asp:ListItem>
                                                </asp:DropDownList>


                                                <asp:TextBox ID="delivergroupText" placeholder="快速搜索商圈" Width="100" runat="server" CssClass="j_text"></asp:TextBox>

                                            </td>

                                        </tr>


                                        <tr>

                                            <td colspan="2">
                                                <div style="line-height: 30px;">
                                                    <span class="span12">添加时间：</span>

                                                    <asp:TextBox runat="server" CssClass="j_text" ID="tbaddstart" Width="120px" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd'})"></asp:TextBox>
                                                    至
                                                    <asp:TextBox runat="server" ID="tbaddend" CssClass="j_text" Width="120px" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd'})"></asp:TextBox>

                                                </div>
                                            </td>
                                        </tr>

                                        <tr>

                                            <td colspan="2">
                                                <div style="line-height: 30px;">

                                                    <asp:Button runat="server" ID="btSearch" class="form-button" Text="搜索"
                                                        OnClick="btSearch_Click" />

                                                    <asp:Button runat="server" ID="btyestoday" class="form-button" Text="昨天" OnClick="settime_Click" />
                                                    <asp:Button runat="server" ID="tbtoday" class="form-button" Text="今天" OnClick="settime_Click" />

                                                    <asp:Button runat="server" ID="btpre" class="form-button" Text="前一天" OnClick="settime_Click" />

                                                    <asp:Button runat="server" ID="btnext" class="form-button" Text="后一天" OnClick="settime_Click" />



                                                    <asp:Button runat="server" ID="btpreweek" class="form-button" Text="前一周" OnClick="settime_Click" />
                                                    <asp:Button runat="server" ID="btweek" class="form-button" Text="本周" OnClick="settime_Click" />
                                                    <asp:Button runat="server" ID="btnextweek" class="form-button" Text="后一周" OnClick="settime_Click" />


                                                    <asp:Button runat="server" ID="btpremounth" class="form-button" Text="前一月" OnClick="settime_Click" />
                                                    <asp:Button runat="server" ID="btmounth" class="form-button" Text="本月" OnClick="settime_Click" />
                                                    <asp:Button runat="server" ID="btnextmounth" class="form-button" Text="后一月" OnClick="settime_Click" />

                                                    <asp:Button runat="server" ID="Button1" class="form-button" Text="导出" OnClick="btExport_Click" />


                                                    <a href="UserAddMoneyDetail.aspx" target="_blank">添加明细</a>

                                                </div>
                                            </td>
                                        </tr>

                                    </table>
                                </fieldset>
                                <fieldset class="AdminSearchform" runat="server" id="userinfofieldset">
                                    <legend runat="server" id="username_legend">统计</legend>
                                    <div style="clear: both; padding: 10px; line-height: 30px;">


                                        <asp:Repeater runat="server" ID="rptppt">
                                            <ItemTemplate>
                                                <div><%# Eval("classname") %>:<span style="font-weight: bold; color: Red"><%# Eval("pic") %></span>元</div>

                                            </ItemTemplate>
                                        </asp:Repeater>






                                        <div>共计:<span runat="server" id="lbIncome" style="font-weight: bold; color: Red">0</span>元</div>



                                    </div>
                                </fieldset>
                                <div class="scott">
                                    <webdiyer:AspNetPager CssClass="anpager" ID="AspNetPager1" runat="server" Width="100%"
                                        CustomInfoHTML="共有记录 <font>%RecordCount%</font> 条 当前为 <font>%CurrentPageIndex%</font>/<font>%PageCount%</font> 页"
                                        HorizontalAlign="Right" ShowCustomInfoSection="Left" CustomInfoTextAlign="Right"
                                        CustomInfoSectionWidth="27%" ShowPageIndexBox="Always" PageIndexBoxType="TextBox"
                                        TextBeforePageIndexBox="转到 " OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxClass="flattext"
                                        ShowPageIndex="True" PageSize="50" SubmitButtonClass="flatbutton" SubmitButtonText="GO"
                                        TextAfterPageIndexBox=" 页 " Wrap="False" AlwaysShow="true">
                                    </webdiyer:AspNetPager>
                                </div>
                                <div id="sales_order_grid_massaction" style="clear: both;">
                                    <table class="massaction" cellpadding="0" cellspacing="0">
                                        <tbody>
                                            <tr>
                                                <td>
                                                    <a href="#" onclick="javascript:Table.CheckAll()">全选</a> <span class="separator">|</span>
                                                    <a href="#" onclick="javascript:Table.CheckNo()">取消选择</a><span class="separator">|</span>
                                                    <a href="#" onclick="javascript:Table.ReCheck()">反向选择</a><span class="separator">|</span>
                                                    <a href="#" onclick="return false">
                                                        <asp:LinkButton runat="server" ID="lbDelsom" OnClientClick="return Del()" OnClick="DelList_Click">删除选定</asp:LinkButton>
                                                    </a>
                                                </td>

                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <div class="grid">
                                    <div class="hor-scroll">
                                        <table class="data" cellspacing="0" id="grid_table">
                                            <col class="a-center" width="5%" />
                                            <col width="8%" />
                                            <col width="8%" />
                                            <col width="8%" />


                                            <col width="6%" />
                                            <col width="10%" />
                                            <col width="12%" />
                                            <col />

                                            <col width="6%" />
                                            <col width="6%" />

                                            <thead>

                                                <tr class="headings">
                                                    <th>
                                                        <span class="nobr">&nbsp;</span>
                                                    </th>
                                                    <th>
                                                        <span class="nobr"><a href="#" name="billing_name" title="asc" class="not-sort"><span
                                                            class="sort-title">账户</span></a></span>
                                                    </th>
                                                    <th>
                                                        <span class="nobr"><a href="#" name="billing_name" title="asc" class="not-sort"><span
                                                            class="sort-title">城市-商圈</span></a></span>
                                                    </th>
                                                    <th>
                                                        <span class="nobr"><a href="#" name="billing_name" title="asc" class="not-sort"><span
                                                            class="sort-title">科目</span></a></span>
                                                    </th>


                                                    <th>
                                                        <span class="nobr"><a href="#" name="billing_name" title="asc" class="not-sort"><span
                                                            class="sort-title">金额</span></a></span>
                                                    </th>
                                                    <th>
                                                        <span class="nobr"><a href="#" name="billing_name" title="asc" class="not-sort"><span
                                                            class="sort-title">发生时间</span></a></span>
                                                    </th>
                                                    <th>
                                                        <span class="nobr"><a href="#" name="billing_name" title="asc" class="not-sort"><span
                                                            class="sort-title">添加时间</span></a></span>
                                                    </th>
                                                    <th>
                                                        <span class="nobr"><a href="#" name="billing_name" title="asc" class="not-sort"><span
                                                            class="sort-title">备注</span></a></span>
                                                    </th>

                                                    <th>
                                                        <span class="nobr"><a href="#" name="billing_name" title="asc" class="not-sort"><span
                                                            class="sort-title">操作人</span></a></span>
                                                    </th>

                                                    <th class="no-link last">
                                                        <span class="nobr" style="padding-top: 3px; *padding-top: 5px;">编辑</span>
                                                    </th>
                                                </tr>
                                            </thead>
                                            <tbody class="grid_data">
                                                <asp:Repeater ID="rtpGifts" runat="server">
                                                    <ItemTemplate>
                                                        <tr class="pointer" title="">
                                                            <td align="center">
                                                                <input class="massaction-checkbox" name="" type="checkbox" value='<%# Eval("dataid") %>'>
                                                                </input>
                                                            </td>
                                                            <td class="">
                                                                <%# Eval("accountuser")%>&nbsp;
                                                            </td>
                                                            <td class="">
                                                                <%# Eval("delivername")%>&nbsp;
                                                            </td>

                                                            <td class="">

                                                                <%# Eval("accountname")%>-<%# Eval("subaccountname")%>
                                                            </td>

                                                            <td class="">
                                                                <%# Eval("AddMoney")%>
                                                            </td>
                                                            <td class="">

                                                                <div style="cursor: pointer;" ondblclick="editData('AddDate','时间','<%# Eval("dataid")%>','AccountingDetail','dataid')">
                                                                    <label id="lbAddDate<%# Eval("dataid")%>"><%# Convert.ToDateTime(Eval("AddDate")).ToShortDateString()%></label>&nbsp;
                                                                </div>



                                                            </td>
                                                            <td class="">
                                                                <%# Eval("systime")%>
                                                            </td>
                                                            <td class="">

                                                                <div style="cursor: pointer;" ondblclick="editData('inve2','备注','<%# Eval("dataid")%>','AccountingDetail','dataid')">
                                                                    <label id="lbinve2<%# Eval("dataid")%>"><%#Eval("inve2")%></label>&nbsp;
                                                                </div>

                                                            </td>

                                                            <td class="">
                                                                <%# Eval("AdminName")%>
                                                            </td>

                                                            <td class=" last" align="center">

                                                                <a href='UserAddMoneyDetail.aspx?id=<%#Eval("dataid") %>&cid=<%# Eval("PayState")%>' target="_blank">编辑</a>

                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                                <div class="scott">
                                    <webdiyer:AspNetPager runat="server" ID="AspNetPager2" CloneFrom="AspNetPager1">
                                    </webdiyer:AspNetPager>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
                <!--foot start-->
                <uc2:Foot runat="server" ID="FootUC" />
                <!--foot end-->
            </div>
    </form>
</body>
</html>
<script src="../../javascript/jbox/jquery.jBox-2.3.min.js"></script>
